package spring.boot.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import spring.boot.admin.model.SysUser;

public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 查询用户的信息以及所有的角色和权限
     */
    SysUser selectByUserName(String username);


    /**
     * 修改个人登录密码
     */
    Integer updatePasswordById(@Param("id") Long id, @Param("password") String password);
}
